package com.after.saas.oauth.service;

import com.after.saas.oauth.domain.UserDTO;
import com.after.saas.oauth.factory.UserServiceHystrixFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by macro on 2020/7/16.
 */
@FeignClient(contextId = "umsMemberService", value = "mall-portal", fallbackFactory = UserServiceHystrixFactory.class)
public interface UmsMemberService {

    @GetMapping("/sso/loadByUsername")
    UserDTO loadUserByUsername(@RequestParam("username") String username);
}
